// 关闭当前路由
export default {
  closePage(allPage,currentPage) {
    // let allPage = this.$store.getters["d2admin/page/allPage"],
    //     currentPage = this.$store.getters["d2admin/page/currentPage"];
    for (var i in allPage) {
      var fullPath = allPage[i].fullPath;
      if (currentPage == fullPath) {
        allPage.splice(i, 1);
      }
    }
  }
};
